package com.yd.app.mapper;

import com.yd.app.mapper.provider.AnalysisProvider;
import com.yd.app.mapper.provider.DicProvider;
import com.yd.domain.business.AnalySum;
import com.yd.domain.business.Analysis;
import com.yd.domain.business.GType;
import com.yd.domain.searchParam.DicParam;
import com.yd.domain.sys.Dic;
import org.apache.ibatis.annotations.*;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @Author: zy
 * @Desc: 统计分析
 * @Date:  2018/4/24
 * @Param
 */
@Repository
public interface AnalysisMapper {
    /**
     * @Author: zy
     * @Desc: 统计分析
     * @Date:  2018/4/24
     * @Param
     */
    @SelectProvider(method = "analysisByGStyle",type= AnalysisProvider.class)
    List<Analysis> analysisByGStyle(@Param("analy") Analysis analy);
    /**
     * @Author: zy
     * @Desc: 根据材质进行统计
     * @Date:  2018/4/24
     * @Param
     */
    @SelectProvider(method = "analysisByType",type= AnalysisProvider.class)
    List<Analysis> analysisByType(@Param("analy") Analysis analy);

    /**
     * @Author: zy
     * @Desc: 计算合计
     * @Date:  2018/4/24
     * @Param
     */
    @SelectProvider(method = "getSumByGStyle",type= AnalysisProvider.class)
    AnalySum getSumByGStyle(@Param("analy") Analysis analy);
}
